package com.example.demo.myModel.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;


/**
 * 每个实体必须拥有的字段
 */

@Data
public class BaseEntity implements Serializable {


    /**
     * 创建时间
     */
    @TableField(exist = true)
    private LocalDateTime createTime= LocalDateTime.now();

    /**
     * 更改时间
     */@TableField(exist = true)
    private LocalDateTime updateTime;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
